package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.ReturnShopInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

import java.util.Map;

public interface ReturnShopInfoService extends IService<ReturnShopInfo> {

    Page<ReturnShopInfo> queryAllreturn(ReturnShopInfo returnShopInfo,Integer pageno, Integer pagesize);

    //根据订单详情添加退货表
    Map addRefundShopByDetailId(ReturnShopInfo refund);

    //根据订单详情id 查询
    ReturnShopInfo queryBYid(Integer id);

    //根据顶单详情表id 修改数据
    Map updatereturns(ReturnShopInfo returnShopInfo);


    Map addRefundShopByDetailId(ReturnShopInfo refund,  MultipartFile[] imgs,
                                HttpServletRequest request);

    //获取退货申请单编号
    public List<String> getIds(String str);

    //根据订单详情id查询申请退货
    ReturnShopInfo queryRefundByDetailId(Integer id);

    //审核退货申请表
    Map ckRefund(ReturnShopInfo refund);

    //签收退货单
    Map receiptForReturn(ReturnShopInfo refund);

}
